package service;

import java.util.List;

import javax.inject.Inject;

import model.League;
import repository.LeagueRepository;

import common.BaseService;

/**
 * Service class for the League entities.
 */
public class LeagueService extends BaseService<League> {

	@Inject
	private LeagueRepository repository;
	
	@Override
	public League get(Long id) {
		return repository.get(id);
	}

	@Override
	public List<League> getAll() {
		return repository.getAll();
	}

}
